from django.contrib import admin

from .models import *
from import_export import resources
from import_export.admin import ImportExportModelAdmin, ImportExportActionModelAdmin

hidden_menu = False
# Register your models here.
class ProxyResource(resources.ModelResource):
    class Meta:
        model = Configuration

# Register your models here. 

#@admin.register(Configuration)

#class RecordAdmin(admin.ModelAdmin):
#class RecordAdmin(ImportExportModelAdmin):

class ResourceAdmin(ImportExportActionModelAdmin):
    resources_class =ProxyResource

    list_display = ('id','name','current_time')
    list_per_page = 10 
    hidden_menu = False
    

class ProxyTime(resources.ModelResource):
    class Meta:
        model = time_depoly

# Register your models here. 
@admin.register(time_depoly)
#class RecordAdmin(admin.ModelAdmin):
#class RecordAdmin(ImportExportModelAdmin):

class TimeAdmin(ImportExportActionModelAdmin):
    resources_class =ProxyTime

    list_display = ('id','name')
    list_per_page = 10 
    hidden_menu = False



class ProxyIp(resources.ModelResource):
    class Meta:
        model = IP_depoly

# Register your models here. 
@admin.register(IP_depoly)

#class RecordAdmin(admin.ModelAdmin):
#class RecordAdmin(ImportExportModelAdmin):

class TimeAdmin(ImportExportActionModelAdmin):
    resources_class =ProxyIp

    list_display = ('id','name')
    list_per_page = 10 
    hidden_menu = False
    
